home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / patch / config.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  4KB  |  132 lines

  1. /* config.h
  2.  * This file was produced by running the config.h.SH script, which
  3.  * gets its values from config.sh, which is generally produced by
  4.  * running Configure.
  5.  *
  6.  * Feel free to modify any of this as the need arises.  Note, however,
  7.  * that running config.h.SH again will wipe out any changes you've made.
  8.  * For a more permanent change edit config.sh and rerun config.h.SH.
  9.  */
  10.  
  11.  
  12. /* EUNICE:
  13.  *    This symbol, if defined, indicates that the program is being compiled
  14.  *    under the EUNICE package under VMS.  The program will need to handle
  15.  *    things like files that don't go away the first time you unlink them,
  16.  *    due to version numbering.  It will also need to compensate for lack
  17.  *    of a respectable link() command.
  18.  */
  19. /* VMS:
  20.  *    This symbol, if defined, indicates that the program is running under
  21.  *    VMS.  It is currently only set in conjunction with the EUNICE symbol.
  22.  */
  23. #/*undef    EUNICE        /**/
  24. #/*undef    VMS        /**/
  25.  
  26. /* CPPSTDIN:
  27.  *    This symbol contains the first part of the string which will invoke
  28.  *    the C preprocessor on the standard input and produce to standard
  29.  *    output.     Typical value of "cc -E" or "/lib/cpp".
  30.  */
  31. /* CPPMINUS:
  32.  *    This symbol contains the second part of the string which will invoke
  33.  *    the C preprocessor on the standard input and produce to standard
  34.  *    output.  This symbol will have the value "-" if CPPSTDIN needs a minus
  35.  *    to specify standard input, otherwise the value is "".
  36.  */
  37. #define CPPSTDIN "/usr/lib/cpp"
  38. #define CPPMINUS ""
  39.  
  40. /* CHARSPRINTF:
  41.  *    This symbol is defined if this system declares "char *sprintf()" in
  42.  *    stdio.h.  The trend seems to be to declare it as "int sprintf()".  It
  43.  *    is up to the package author to declare sprintf correctly based on the
  44.  *    symbol.
  45.  */
  46. /* #    CHARSPRINTF     /**/
  47.  
  48. /* FLEXFILENAMES:
  49.  *    This symbol, if defined, indicates that the system supports filenames
  50.  *    longer than 14 characters.
  51.  */
  52. #define    FLEXFILENAMES        /**/
  53.  
  54. /* index:
  55.  *    This preprocessor symbol is defined, along with rindex, if the system
  56.  *    uses the strchr and strrchr routines instead.
  57.  */
  58. /* rindex:
  59.  *    This preprocessor symbol is defined, along with index, if the system
  60.  *    uses the strchr and strrchr routines instead.
  61.  */
  62. #/*undef    index strchr    /* cultural */
  63. #/*undef    rindex strrchr    /*  differences? */
  64.  
  65. /* VOIDSIG:
  66.  *    This symbol is defined if this system declares "void (*signal())()" in
  67.  *    signal.h.  The old way was to declare it as "int (*signal())()".  It
  68.  *    is up to the package author to declare things correctly based on the
  69.  *    symbol.
  70.  */
  71. #define    VOIDSIG     /**/
  72.  
  73. /* DIRHEADER:
  74.  *    This definition indicates which directory library header to use.
  75.  */
  76. #define DIRENT
  77.  
  78. /* HAVE_UNISTD_H:
  79.  *    This is defined if the system has unistd.h.
  80.  */
  81. #define    HAVE_UNISTD_H    /**/
  82.  
  83. /* Reg1:
  84.  *    This symbol, along with Reg2, Reg3, etc. is either the word "register"
  85.  *    or null, depending on whether the C compiler pays attention to this
  86.  *    many register declarations.  The intent is that you don't have to
  87.  *    order your register declarations in the order of importance, so you
  88.  *    can freely declare register variables in sub-blocks of code and as
  89.  *    function parameters.  Do not use Reg<n> more than once per routine.
  90.  */
  91.  
  92. #define Reg1 register        /**/
  93. #define Reg2 register        /**/
  94. #define Reg3 register        /**/
  95. #define Reg4 register        /**/
  96. #define Reg5 register        /**/
  97. #define Reg6 register        /**/
  98. #define Reg7         /**/
  99. #define Reg8         /**/
  100. #define Reg9         /**/
  101. #define Reg10         /**/
  102. #define Reg11         /**/
  103. #define Reg12         /**/
  104. #define Reg13         /**/
  105. #define Reg14         /**/
  106. #define Reg15         /**/
  107. #define Reg16         /**/
  108.  
  109. /* VOIDFLAGS:
  110.  *    This symbol indicates how much support of the void type is given by this
  111.  *    compiler.  What various bits mean:
  112.  *
  113.  *        1 = supports declaration of void
  114.  *        2 = supports arrays of pointers to functions returning void
  115.  *        4 = supports comparisons between pointers to void functions and
  116.  *            addresses of void functions
  117.  *
  118.  *    The package designer should define VOIDUSED to indicate the requirements
  119.  *    of the package.  This can be done either by #defining VOIDUSED before
  120.  *    including config.h, or by defining defvoidused in Myinit.U.  If the
  121.  *    level of void support necessary is not present, defines void to int.
  122.  */
  123. #ifndef VOIDUSED
  124. #define VOIDUSED 7
  125. #endif
  126. #define VOIDFLAGS 7
  127. #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
  128. #define void int        /* is void to be avoided? */
  129. #define M_VOID        /* Xenix strikes again */
  130. #endif
  131.  
  132.